import baseUrl from '../public/config/index';
export default [
  // user
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      { path: '/user', redirect: '/user/login' },
      { path: '/user/login', name: 'login', component: './User/Login' },
      { path: '/user/register', name: 'register', component: './User/Register' },
      {
        component: '404',
      },
    ],
  },
  {
    path: '/template',
    component: './Carousel/carousel',
    target: '_blank',
  },
  {
    path: '/img',
    component: './Carousel/imga',
    target: '_blank',
  },
  {
    path: '/imgTwo',
    component: './Carousel/imgb',
    target: '_blank',
  },
  {
    path: '/imgThree',
    component: './Carousel/imgc',
    target: '_blank',
  },
  {
    path: '/newHome',
    component: './newHome/index',
  },

  // app
  {
    path: '/',
    component: '../layouts/BasicLayout.js',
    Routes: ['src/pages/Authorized'],
    routes: [
      // home
      { path: '/', redirect: '/newHome', authority: ['admin'] },
      {
        path: '/newHome',
        name: 'home',
        classType: 'menuHome',
        icon: '/images/menu/home.png',
        component: './newHome/index',
        // icon:"https://www.chatbot.cn/images/icons/home.png",
        iconIsCustom: true,
        isAuth: true,
      },
      // {
      //   path: '/index',
      //   name: 'home',
      //   icon: 'home',
      //   component: './Home/Home',
      // },
      {
        path: '/access',
        name: 'dataStatistics',
        icon: 'pie-chart',
        hideInMenu: true,
        routes: [
          {
            path: '/access/accesstrends',
            name: 'accesstrends',
            component: './DataStatistics/AccessTrends/Index',
          },
          //  {
          //    path:'/access/visitordistribution',
          //    name: 'visitordistribution',
          //    component: './DataStatistics/VisitorDistribution/Index'
          //  },
          //  {
          //    path:'/access/answerdetailstatis',
          //    name: 'answerdetailstatis',
          //    component: './DataStatistics/AnswerDetailStatis/Index'
          //  },
          {
            path: '/access/answerratiostatis',
            name: 'answerratiostatis',
            component: './DataStatistics/AnswerRatioStatis/Index',
          },
          //  {
          //   path:'/access/AnswerRecords',
          //   name: 'AnswerRecords',
          //   component: './DataStatistics/AnswerRecords/Index'
          // }
        ],
      },
      {
        name: 'overviewRobots',
        classType: 'menuOverviewRobots',
        icon: '/images/menu/robot.png',
        // icon:"https://www.chatbot.cn/images/icons/robot.png",
        iconIsCustom: true,
        path: '/overviewRobots',
        component: './overviewRobots/home/Index',
        hideInMenu: false,
        isAuth: true,
      },
      {
        name: '',
        classType: 'robotItem',
        path: '/overviewRobotsa',
        component: './overviewRobots/home/Index',
        hideInMenu: false,
        isAuth: false,
      },
      {
        name: 'account', // 机器人管理
        icon: '/images/menu/robotMange.png',
        // icon:"https://www.chatbot.cn/images/icons/robotMange.png",
        classType: 'menuAccount',
        iconIsCustom: true,
        path: '/account',
        hideInMenu: false,
        isAuth: true,
        routes: [
          {
            path: '/account/robotSetup',
            name: 'robotSetup',
            component: './Account/robotSetup/Index',
            isAuth: true,
          },
          {
            path: '/account/TeamWord',
            name: 'teamWord',
            component: './Account/TeamWord/Index',
            isAuth: true,
          },
          {
            path: '/account/accessSettings',
            name: 'accessSettings',
            component: './Account/accessSettings/Index',
            isAuth: true,
          },
          // {
          //   path:'/account/answerdetailstatis',
          //   name: 'answerdetailstatis',
          //   component: './Account/AnswerDetailStatis/Index',
          //   isAuth:true,
          // },
          {
            path: '/account/AnswerRecords',
            name: 'AnswerRecords',
            component: './Account/AnswerRecords/Index',
            isAuth: true,
          },
          {
            path: '/account/Settings',
            component: './Account/Settings/Index',
            isAuth: true,
          },
          // {
          //   path: '/account/apiAccess',
          //   name: 'apiAccess',
          //   component: './Account/apiAccess/Index',
          // },
        ],
      },
      {
        //运营分析
        path: '/operate',
        name: 'operateAnalysis',
        classType: 'menuOperateAnalysis',
        icon: '/images/menu/robot.png',
        iconIsCustom: true,
        isAuth: true,
        routes: [
          {
            // 机器人总览
            path: '/operate/overview',
            name: 'overview',
            component: './OperateAnalysis/overview/Index',
            isAuth: true,
          },
          {
            // 接口调用情况分析
            path: '/operate/apicallanalysis',
            name: 'apiCallAnalysis',
            component: './OperateAnalysis/sameOperateAnalysis/list',
            isAuth: true,
          },
          {
            // 对话流程分析
            path: '/operate/dialogueAnalysis',
            name: 'dialogueAnalysis',
            component: './OperateAnalysis/sameOperateAnalysis/list',
            isAuth: true,
          },
          {
            // 知识点数量分析
            path: '/operate/knowledgeAnalysis',
            name: 'knowledgeAnalysis',
            component: './OperateAnalysis/sameOperateAnalysis/list',
            isAuth: true,
          },
          {
            // 多轮对话总体情况分析
            path: '/operate/mulDialogueAnalysis',
            name: 'mulDialogueAnalysis',
            component: './OperateAnalysis/sameOperateAnalysis/list',
            isAuth: true,
          },
          // {// 多轮对话完成率分析
          //   path:'/operate/dialogueRateAnalysis',
          //   name: 'dialogueRateAnalysis',
          //   component: './OperateAnalysis/sameOperateAnalysis/list',
          //   isAuth:true,
          // },
          // {// 多轮对话平均轮数分析
          //   path:'/operate/dialogueAveAnalysis',
          //   name: 'dialogueAveAnalysis',
          //   component: './OperateAnalysis/sameOperateAnalysis/list',
          //   isAuth:true,
          // },
          {
            // 多轮对话失败原因分析
            path: '/operate/dialogueFailAnalysis',
            name: 'dialogueFailAnalysis',
            component: './OperateAnalysis/sameOperateAnalysis/list',
            isAuth: true,
          },
          {
            // 问答任务情况分析
            path: '/operate/questionAnalysis',
            name: 'questionAnalysis',
            component: './OperateAnalysis/sameOperateAnalysis/list',
            isAuth: true,
          },
          {
            // 未知问题分析
            path: '/operate/unKnownQuestionAnalysis',
            name: 'unKnownQuestionAnalysis',
            component: './OperateAnalysis/sameOperateAnalysis/list',
            isAuth: true,
          },
          {
            // 未知问题知识点聚合
            path: '/operate/unKnownQuestionAgg',
            name: 'unKnownQuestionAgg',
            component: './OperateAnalysis/sameOperateAnalysis/list',
            isAuth: true,
          },
        ],
      },
      // 基础能力
      {
        // 知识管理 versionMaintenance
        path: '/knowledge',
        name: 'knowledgeManagement',
        classType: 'menuKnowledgeManagement',
        icon: '/images/menu/knowledge.png',
        // icon:"https://www.chatbot.cn/images/icons/knowledge.png",
        iconIsCustom: true,
        isAuth: true,
        routes: [
          {
            path: '/knowledge/businessKnowledgeBase',
            name: 'businessKnowledgeBase',
            component: './KnowledgeManagement/businessKnowledgeBase/Index',
            hideInMenu: true,
          },
          {
            path: '/knowledge/overview',
            name: 'knowledgeBasePandect',
            component: './KnowledgeManagement/Overview/Index',
            isAuth: true,
          },
          {
            path: '/knowledge/antistopReply',
            name: 'antistopReply',
            component: './KnowledgeManagement/AntistopReply/Index',
            hideInMenu: true,
          },
          {
            path: '/knowledge/antistopReply/edit',
            name: 'editAntistopReply',
            component: './KnowledgeManagement/AntistopReply/editText',
            hideInMenu: true,
          },
          {
            path: '/knowledge/antistopReply/add',
            name: 'addAntistopReply',
            component: './KnowledgeManagement/AntistopReply/addText',
            hideInMenu: true,
          },
          {
            path: '/knowledge/antistopReply/Ueditor',
            name: 'addAntistopReply',
            component: './KnowledgeManagement/AntistopReply/editUeditor',
            hideInMenu: true,
          },
          {
            path: '/knowledge/knowledgeBaseSharing',
            name: 'knowledgeBaseSharing',
            component: './KnowledgeManagement/KnowledgeBaseSharing/Index',
            isAuth: true,
          },
          {
            path: '/knowledge/knowledgeBaseSharing/add',
            name: 'addShore',
            component: './KnowledgeManagement/KnowledgeBaseSharing/addShore',
            hideInMenu: true,
          },
          {
            path: '/knowledge/knowledgeBaseSharing/edit',
            name: 'editShore',
            component: './KnowledgeManagement/KnowledgeBaseSharing/editShore',
            hideInMenu: true,
          },
          // {
          //   path:'/knowledge/amendantRecord',
          //   name: 'amendantRecord',
          //   component: './KnowledgeManagement/amendantRecord/Index'
          // },
          {
            path: '/knowledge/versionMaintenance',
            name: 'versionMaintenance',
            component: './KnowledgeManagement/versionMaintenance/Index',
            isAuth: true,
          },
          // {
          //   path:'/knowledge/recycleBin',
          //   name: 'recycleBin',
          //   component: './KnowledgeManagement/RecycleBin/Index'
          // }
        ],
      },
      {
        path: '/dialog/index',
        name: 'dialog',
        icon: '/images/menu/dialog.png',
        // icon:"https://www.chatbot.cn/images/icons/dialog.png",
        component: './Dialog/List/index',
        iconIsCustom: true,
        classType: 'menuDialog',
        hideInMenu: false,
        isAuth: true,
      },
      {
        path: '/basic',
        name: 'basicCapacity',
        icon: '/images/menu/common.png',
        // icon:"https://www.chatbot.cn/images/icons/common.png",
        classType: 'menuBasicCapacity',
        iconIsCustom: true,
        isAuth: true,
        routes: [
          {
            path: '/basic/BusinessDocuments',
            name: 'businessDocuments',
            component: './KnowledgeManagement/BusinessDocuments/Index',
            hideInMenu: true,
          },
          {
            path: '/basic/customDictionary',
            name: 'customDictionary',
            component: './BasicCapacity/CustomDictionary/Index',
            isAuth: true,
          },
          {
            path: '/basic/customDictionary/enumerable',
            component: './BasicCapacity/CustomDictionary/enumerableNew',
            hideInMenu: true,
          },
          {
            path: '/basic/customDictionary/noEnumerationNew',
            component: './BasicCapacity/CustomDictionary/noEnumerationNew',
            hideInMenu: true,
          },
          {
            path: '/basic/wordTroughManage',
            name: 'wordTroughManage',
            component: './BasicCapacity/WordTroughManage/Index',
            isAuth: true,
          },
          {
            path: '/basic/processTemplate',
            name: 'processTemplate',
            component: './BasicCapacity/ProcessTemplate/Index',
            hideInMenu: true,
          },
          {
            path: '/basic/processTemplate/edit',
            name: 'addProcessTemplate',
            component: './BasicCapacity/ProcessTemplate/AddOrEdit',
            hideInMenu: true,
          },
          {
            path: '/basic/customApi',
            name: 'customApi',
            component: './BasicCapacity/CustomApi/Index',
            isAuth: true,
          },
          {
            path: '/basic/customApi/edit',
            name: 'customApiEdit',
            component: './BasicCapacity/CustomApi/Edit',
            hideInMenu: true,
          },
          {
            path: '/basic/customApi/testApi',
            name: 'customApiTest',
            component: './BasicCapacity/CustomApi/testApi',
            hideInMenu: true,
          },
          {
            path: '/basic/businessDictionary',
            name: 'businessDictionary',
            component: './BasicCapacity/businessDictionary/Index',
            hideInMenu: true,
          },
          {
            path: '/basic/thesaurusManage',
            name: 'thesaurusManage',
            component: './BasicCapacity/ThesaurusManage/Index',
            hideInMenu: true,
          },
          {
            path: '/basic/processTemplate/edit',
            name: 'addProcessTemplate',
            component: './BasicCapacity/ProcessTemplate/AddOrEdit',
            hideInMenu: true,
          },
        ],
      },
      {
        path: '/sys',
        name: 'sysMange',
        icon: '/images/menu/sys.png',
        // icon:"https://www.chatbot.cn/images/icons/sys.png",
        classType: 'menuSysMange',
        iconIsCustom: true,
        isAuth: true,
        routes: [
          // {
          //   path: '/sys/manageMent',
          //   name: 'manageMent',
          //   component: './Account/manageMent/Index',
          // },
          {
            path: '/sys/userManagement',
            name: 'userManagement',
            component: './Account/userManagement/Index',
            isAuth: true,
          },
          {
            path: '/sys/roleManagement',
            name: 'roleManagement',
            component: './Account/roleManagement/Index',
            isAuth: true,
          },
          {
            path: '/sys/authorization',
            name: 'authorization',
            component: './Account/authorization/Index',
            isAuth: true,
          },
        ],
      },
      {
        path: '/capacity', // 智能学习 ClusteringProblem
        name: 'capacityStudy',
        icon: 'robot',
        hideInMenu: true,
        routes: [
          {
            path: '/capacity/knowledgeSmartMaintenance',
            name: 'knowledgeSmartMaintenance',
            component: './CapacityStudy/knowledgeSmartMaintenance/Index',
            isAuth: true,
          },
          {
            path: '/capacity/knowledgeSmartMaintenance/CheckList',
            component: './CapacityStudy/knowledgeSmartMaintenance/CheckList',
            hideInMenu: true,
          },
          {
            path: '/capacity/knowledgeSmartMaintenance/theBlacklist',
            component: './CapacityStudy/knowledgeSmartMaintenance/theBlacklist',
            hideInMenu: true,
          },
          {
            path: '/capacity/knowledgeSmartMaintenance/problemRecommendedList',
            component: './CapacityStudy/knowledgeSmartMaintenance/problemRecommendedList',
            hideInMenu: true,
          },
          {
            path: '/capacity/knowledgeSmartMaintenance/clusteringProblem',
            component: './CapacityStudy/knowledgeSmartMaintenance/clusteringProblem',
            hideInMenu: true,
          },
          {
            path: '/capacity/knowledgeSmartMaintenance/recommendedTreatment',
            component: './CapacityStudy/knowledgeSmartMaintenance/recommendedTreatment',
            hideInMenu: true,
          },
          {
            path: '/capacity/knowledgeSmartMaintenance/clusterView',
            component: './CapacityStudy/knowledgeSmartMaintenance/clusterView',
            hideInMenu: true,
          },
          {
            path: '/capacity/medicalKnowledge',
            name: 'medicalKnowledge',
            component: './CapacityStudy/medicalKnowledge/Index',
            isAuth: true,
          },
          {
            path: '/capacity/medicalKnowledge/detail',
            component: './CapacityStudy/medicalKnowledge/twoIndex',
            isAuth: true,
          },
          {
            path: '/capacity/waitingLearningIssue',
            name: 'waitingLearningIssue',
            component: './CapacityStudy/WaitingLearningIssue/Index',
            isAuth: true,
          },
        ],
      },
      {
        path: '/notice',
        name: 'notice',
        icon: 'notice',
        component: './notice',
        hideInMenu: true,
      },
      {
        path: '/dialog/specialIndex',
        name: 'dialog',
        icon: 'bulb',
        component: './Dialog/specialCase/index',
        hideInMenu: true,
      },
      {
        path: '/dialog/add',
        name: 'dialogAdd',
        icon: 'bulb',
        component: './Dialog/Add/index',
        hideInMenu: true,
      },
      {
        path: '/overviewRobots/NewRobot',
        name: 'dialogAdd',
        icon: 'bulb',
        component: './overviewRobots/home/NewRobot',
        hideInMenu: true,
      },
      {
        component: '404',
      },
    ],
  },
];
